import 'dart:async';

import 'flutter_utils_platform.dart';

class FlutterUtils {
  FlutterUtils._();

  static FlutterUtilsPlatform get _store => FlutterUtilsPlatform.instance;

  /// TODO sd卡是否存在
  static Future<bool> haveExternalStorage() => _store.haveExternalStorage();

  /// TODO 获得当前是在手机上还是平板上
  static Future<int> getPhoneType() => _store.getPhoneType();

  /// TODO 当前语言环境
  static Future<String> getLanguage() => _store.getLanguage();

  /// TODO 获得当前网络
  static Future<String> getCurrentNetworkType() =>
      _store.getCurrentNetworkType();

  /// TODO 获得 imei
  static Future<String> getImei() => _store.getImei();

  /// TODO 获得屏幕宽度
  static Future<double> getScreenWidth() => _store.getScreenWidth();

  /// TODO 获得屏幕高度
  static Future<double> getScreenHeight() => _store.getScreenHeight();

  /// TODO 获得屏幕密度
  static Future<double> getScreenRatio() => _store.getScreenRatio();
}
